﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using DevDL.UserLimit.BLL;
using DevDL.UserLimit.Models;

namespace XinYuan.Service
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码、svc 和配置文件中的类名“OperatorService”。
    public class OperatorService : IOperatorService
    {
        public List<Operator> GetOperators()
        {
            return new OperatorBLL().GetOperators();
        }


        public int Insert(Operator ope)
        {
            return new OperatorBLL().Insert(ope);
        }


        public int Delete(int id)
        {
            return new OperatorBLL().Delete(id);
        }


        public int Modify(Operator ope)
        {
            return new OperatorBLL().Modify(ope);
        }


        public List<Operator> GetOperatorById(int id)
        {
            return new OperatorBLL().GetOperators(id);
        }


        public Operator GetUserInfoByUserId(string userId)
        {
            return new OperatorBLL().GetUserInfoByUserId(userId);
        }

        public bool LoginIn(string str1, string str2, ref Operator userInfo, ref string msg)
        {
            return new OperatorBLL().CheckUser(str1, str2, ref userInfo, ref msg);   
        }
    }
}
